package com.boscloud.manufacturing_execution_system.controller;

import com.boscloud.manufacturing_execution_system.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;
import com.boscloud.manufacturing_execution_system.service.UserService;

import java.util.List;
@CrossOrigin //允许跨域
@RestController
public class UserController {
    @Autowired
    private UserService UserService;
    @PostMapping("/userList")
    public List<User> getUserList(){
        return UserService.getUserList();
    }
}
